#ifndef __UI_VIDEO_TOPBAR__H__
#define __UI_VIDEO_TOPBAR__H__

#include <MZFCLIB.h>
#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagTopBarBtnDisplay
{
	VIDEO_TOPBAR_CLOSE = 0,
//	VIDEO_DOWNBAR_PLAY = 0,
//	VIDEO_DOWNBAR_STOP,
	VIDEO_TOPBAR_FILEBROWSER,
//	VIDEO_DOWNBAR_PREV,
//	VIDEO_DOWNBAR_NEXT,
	MAX_TOPBAR_BTN,
} VIDEO_TOPBAR_BTN;

typedef enum _tagTopBarStatusBarDisplay
{
//	VIDEO_DOWNBAR_STATUSBAR_VOLUME = 0,
	VIDEO_TOPBAR_STATUSBAR_PROGRESS = 0,
	MAX_TOPBAR_STATUSBAR,
} VIDEO_TOPBAR_STATUSBAR;

typedef enum _tagTopBarStaticCtrl
{
	VIDEO_TOPBAR_CURRENTTIME = 0,
	VIDEO_TOPBAR_DURATIONTIME,
	MAX_TOPBAR_STATIC_CTRL,
} VIDEO_TOPBAR_STATIC_CTRL;

class UiTopBar :
	public UiWin
{
public:
	UiTopBar();
	~UiTopBar();

	BOOL InitUiWin(HWND hWnd);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
//	virtual void PaintWin(HDC hdc, RECT* prcUpdate /* = NULL */);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);

	void LoadiInterItem();
	BOOL InitImages();
public:
	CUiStatusBar m_slideBar[MAX_TOPBAR_STATUSBAR];

	UiStatic m_staticCtl[MAX_TOPBAR_STATIC_CTRL];

//	UiButtonEx m_BtnVideoMain[MAX_VIDEO_MAIN_BTN];
	iUiButton m_BtnTopBar[MAX_TOPBAR_BTN];

	CMzString		m_strXmlPID[MAX_TOPBAR_BTN];
	CMzString		m_strStatusBarXmlPID[MAX_TOPBAR_STATUSBAR];
	CMzString		m_strStaticXmlPID[MAX_TOPBAR_STATIC_CTRL];
	ImagingHelper	*m_TopBarBG;
//	ImagingHelper	*m_VideoMainHighLight;
//	HBITMAP			m_VideoMainBG;
	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
public:
	BOOL			m_bFirstEnter;
};

#endif